@font-face {
    font-family: 'PingFang SC';
    src: url('@/assets/fonts/PingFangSCRegular.ttf');
}

@font-face {
    font-family: 'DINPro';
    src: url('@/assets/fonts/DIN-Medium.otf');
}

.reverse-up-down {
    transform: rotate(180deg);
}

//超出一行省略号显示
.ellipsis{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

// 超出多行省略号显示
@List: 1,2,3,4,5;
.for(@counter) when (@counter < length(@List)+1) {
  .ellipsis-@{counter} {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: @counter;
    -webkit-box-orient: vertical;
  }
  .for(@counter+1)
}
.for(1);

.flex{
    display: flex;
}

.flex-column{
    flex-direction: column;
}

.flex-center{
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-start{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-between{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-end{
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.items-center{
    align-items: center;
}

.justify-between{
    justify-content: space-between;
}

.items-end{
    align-items: flex-end;
}

.shrink-0 {
    flex-shrink: 0;
}

//清除浮动
.clear-both{
    &::after{
        content: "";
        clear: both;
        display: block;
    }
}

//左侧蓝色竖线图标的标题
.sub-title{
    background: url("@/assets/icon/icon-title.png") no-repeat left center;
    background-size: 4px 16px;
    padding: 0 8px;
    color: #212121;
    font-weight: 900;
    font-size: 15px;
    margin: 12px;
}

//环比上下箭头
.icon-huan-up,.icon-huan-down{
    &::before{
        content: "➝";
        display: inline-block;
        font-size: 13px;
        font-weight: 900;
        color: #02AF60;
        transform: rotate(-90deg);
    }
}
.icon-huan-down{
    &::before{
        color: #f52f45;
        transform: rotate(90deg);
    }
}
.van-tabs{
    .van-tabs__wrap{
        position: relative;
        z-index: 1;
        overflow: auto;
        box-shadow: 0px 4px 10px 0px #0000000C;
    }
    .van-tab{
        color: #0E0D16;
    }
    .van-tabs__line{
        bottom: 6px;
        width: 24px;
        height: 4px;
        background: #3A75C5;
    }
    .van-tabs__nav--line{
        padding: 0;
    }
}

//二级tab页，蓝色渐变下划线
.sub-tab.van-tabs{
    .van-tabs__wrap{
        height: 25px;
        .van-tab{
            font-size: 15px;
            flex: inherit;
            +.van-tab{
                margin-left: 18px;
            }
        }
        .van-tabs__nav{
            background: transparent;
            padding: 0;
            position: relative;
        }
        .van-tabs__line{
            width: 32px;
            height: 5px;
            background: url("@/assets/icon/p-title.png") no-repeat center bottom;
            background-size: 100% 100%;
            bottom: 1px;
        }
    }
}

.scrollbar{
    &::-webkit-scrollbar {
      background: transparent;
      width: 2px;
    }
  
    &::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.4);
      width: 2px;
      border-radius: 2px;
    }
}
.content-list,.content{
    .scrollbar
}